<template>
<el-main>
  <uploader :options="options" @file-success="fileSuccess"></uploader>
  <uploader :options="options" @file-success="ok"></uploader>
</el-main>
</template>

<script>
export default {
  name: "FileTestView",
  data() {
    return {
      options:{
        target: this.axios.defaults.baseURL + 'file/upload',
        testChunks: false,
        chunkSize: 548576
      }
    }
  },
  methods:{
    fileSuccess(p1, p2, p3) {
      console.log(p3);
      let result = JSON.parse(p3);
      console.log(result);
    },
    ok() {

    }
  }
}
</script>

<style scoped>

</style>